<?php

namespace services\models\minisite;

use Yii;

/**
 * This is the model class for table "d_mini.t_activity_show_feel_statistics".
 *
 * @property integer $asf_id
 * @property integer $c_view_times
 * @property integer $c_good_times
 */
class MActivityShowFeelStatistics extends \common\models\minisite\MActivityShowFeelStatistics
{
    public function getMActivityShowFeel()
    {
        return $this->hasOne(MActivityShowFeel::className(), ['id'=>'asf_id']);
    }

    public function getShowTimes(){
        if($this->c_view_times>9999){
            return '9999+';
        }
        return $this->c_view_times;
    }
    public function getGoodTimes(){
        if($this->c_good_times>9999){
            return '9999+';
        }
        return $this->c_good_times;
    }

}
